{% extends "base_documentation.html" %}
{%block title%}
Dokümantasyon kategori tanımlamaları 
{%endblock%}
{%block content%}
 <div id="sidetree" class="sidetree">
 {% if perms.documentation.kategori_olusturma %}
 <a href="/documentation/categories/add/"><small>Kategori Ekle</small></a>
 {% endif %}
 <div id="sidetreecontrol"><a class="collapseclick" href="?#">Tümünü Kapat</a>&nbsp;|&nbsp;<a class="expandclick" href="?#">Tümünü Aç</a></div>
 <div id="treediv">
 {{x|safe}}
 </div>
 </div>
 <div id="rbdiv"><img src="/media/images/solaltbg-blurry.gif"/></div>
{% if searchform %}
 <div id="contentdiv">  
    <div id="itsthetable" >
                        {% if searchform.errors %}
                                <p style="color: red;">
                                   Bilgilerinizde hata var.. ({{ searchform.errors }}).
                                </p>
                        {% endif %}
       
                      
						<table>
						 <form method="post" action="/documentation/search/"><!--{ % csrf_token % }-->
						<tbody>
						<tr>
						    <th>{{ searchform.text.label_tag }}</th>
						    <td>{{ searchform.text }}</td>
						</tr>
						{% if tags %}
						<tr>
							<th>Etiketlere Göre Getir&nbsp;:</th>
							<td>{% for tag in tags%}<a href="/documentation/search/?tag={{tag.name}}">{{tag.name}}</a>&nbsp;{%endfor%}</td>
						</tr>
						{% endif %}
						<tfoot>
						<tr>
						<th>&nbsp;</th>
						<td>
						<input type="submit" value="Ara" />
						</td>
						</tr>
						</tfoot>
						</tbody>
						</form>
						</table>
						
						
	{% if xmsg %}
		<ul>
			<li>
				{{xmsg}}
			</li>
		<ul>	
	{% endif %}
	{% if docs %}
    </div>
	<div>
		<table>
			<tr><th>Arama Sonuçları :</th></tr>
		</table>
		<ul>
			{% for doc in docs %}
			<li>
				Belge&nbsp;:&nbsp;{% if perms.documentation.belge_olusturma %}<a href="/documentation/docs/{{doc.id}}/edit/">{{doc.caption}}</a>{% else %}{{doc.caption}}{% endif %}&nbsp;-&nbsp;Kategorisi:&nbsp;{{doc.category}}
			</li>
			{% endfor %}
		</ul>
	</div>
	{% endif %}
</div>
{% endif %}
{%endblock%}
{%block script%}
<link rel="stylesheet" href="/media/css/jquery.treeview.css" />
<script src="/media/js/jquery.cookie.js" type="text/javascript"></script>
<script type="text/javascript" src="/media/js/jquery.treeview.js"></script>
<script type="text/javascript">
		$(function() {

			$("#tree").treeview({
				collapsed: true,
				control:"#sidetreecontrol"
				
				
				
			});

			

		})
		
		$(document).ready(function() { 
			$('a.expandclick').click();
		});
		
</script>
<script>
function PopupCenter(pageURL, title,w,h) {
	var mydomain=window.location.href.match(/:\/\/(.[^/]+)/)[1];
	//alert(mydomain);
	var pageURL="http://"+mydomain+"/"+pageURL;
	//alert("2 : "+pageURL);
	
	var left = (screen.width/2)-(w/2);
	var top = (screen.height/2)-(h/2);
	var targetWin = window.open (pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);

}
</script>
<link rel="stylesheet" type="text/css" href="/media/css/table-orange.css" />
{%endblock%}